<template>
  <div class="fullscreen">
    <i @click="fullscreen" class="el-icon-full-screen"></i>
  </div>
</template>

<script>
// 导入全屏第三方包
import screenfull from 'screenfull'
export default {
  name: 'myfullscreen',
  methods: {
    fullscreen () {
      // 全屏 / 退出全屏
      screenfull.toggle()
    }
  }
}
</script>

<style></style>
